<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html">
        The purchase order below has been successfully saved into the system.<br/>
<h:form id="confirmNewSalesOrderForm">
            <h:outputText style="font-weight: bold" value="Purchase Order Id: " />
            <h:outputText value="#{purchaseOrderBean.purchaseOrderId}">
            </h:outputText><br/>

            <h:outputText style="font-weight: bold" value="Date Submitted: " />
            <h:outputText value="#{purchaseOrderBean.dateSubmitted}">
            </h:outputText><br/>

            <br/>
            <h:outputText style="font-weight: bold" value="Submitted By: " />
            <h:outputText value="#{quotationBean.clientId}">
            </h:outputText><br/>

            <h:dataTable cellpadding="3px" cellspacing="6px" styleClass="allaroundborder" headerClass="allaroundborder" columnClasses="allaroundborder" 
                         rowClasses="allaroundborder" value="#{purchaseOrderBean.purchaseOrderItems}" var="purchaseOrderItem">

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Item Id" />
                    </f:facet>
                    <h:outputText value="#{purchaseOrderItem.id}" />
                </h:column>    

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Item Name" />
                    </f:facet>
                    <h:outputText value="#{purchaseOrderItem.productName}" />
                </h:column>    

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Quantity of Product" />
                    </f:facet>
                    <h:outputText value="#{purchaseOrderItem.numOfProduct}" />
                </h:column>    

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Product Price" />
                    </f:facet>
                    <h:outputText value="#{purchaseOrderItem.productPrice}" />
                </h:column>
                
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Shipping Address" />
                    </f:facet>
                    <h:outputText value="#{purchaseOrderItem.shippingAddress}" />
                </h:column> 

            </h:dataTable><br/>
            <h:commandButton action="index.xhtml" value="Return to index" actionListener="#{purchaseOrderBean.resetAfterAction}"/>
        </h:form>   
</ui:composition>